package com.jh3502.vivo.view.treeview;


import com.jh3502.vivo.R;

public class RootNode<T> implements LayoutItem {
    private T bean;

    public RootNode(T bean) {
        this.bean = bean;
    }

    public T getBean() {
        return bean;
    }

    public void setBean(T bean) {
        this.bean = bean;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_root;
    }

    @Override
    public int getToggleId() {
        return R.id.root_node;
    }

    @Override
    public int getCheckedId() {
        return 0;
    }

    @Override
    public int getClickId() {
        return R.id.root_name;
    }

}
